package cn.wygandwdn.learn.mapper;

import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

/**
 * @description:
 * @author: WYG
 * @time: 2021/5/6 19:36
 */
@Component
public class TechnologyMapper {
    private static Map<String, String> technology = new HashMap<>();
    static {
        technology.put("java", "Jenkins Success!");
        technology.put("mysql", "database");
        technology.put("redis", "cache");
        technology.put("rabbitmq", "message deque");
    }
    public String getInfo(String key) {
        String result = technology.get(key);
        return result;
    }
}
